Optimal. Leaf size=60 \[ \frac{\cot (e+f x)}{f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt{a \cos ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.117242, antiderivative size = 60, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {3176, 3207, 2606} \[ \frac{\cot (e+f x)}{f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2606
Rubi steps
\begin{align*} \int \frac{\cot ^4(e+f x)}{\sqrt{a-a \sin ^2(e+f x)}} \, dx &=\int \frac{\cot ^4(e+f x)}{\sqrt{a \cos ^2(e+f x)}} \, dx\\ &=\frac{\cos (e+f x) \int \cot ^3(e+f x) \csc (e+f x) \, dx}{\sqrt{a \cos ^2(e+f x)}}\\ &=-\frac{\cos (e+f x) \operatorname{Subst}\left (\int \left (-1+x^2\right ) \, dx,x,\csc (e+f x)\right )}{f \sqrt{a \cos ^2(e+f x)}}\\ &=\frac{\cot (e+f x)}{f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt{a \cos ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.0603917, size = 37, normalized size = 0.62 \[ -\frac{\cot (e+f x) \left (\csc ^2(e+f x)-3\right )}{3 f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.717, size = 44, normalized size = 0.7 \begin{align*}{\frac{\cos \left ( fx+e \right ) \left ( 3\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}-1 \right ) }{3\, \left ( \sin \left ( fx+e \right ) \right ) ^{3}f}{\frac{1}{\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.70911, size = 709, normalized size = 11.82 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58113, size = 143, normalized size = 2.38 \begin{align*} \frac{\sqrt{a \cos \left (f x + e\right )^{2}}{\left (3 \, \cos \left (f x + e\right )^{2} - 2\right )}}{3 \,{\left (a f \cos \left (f x + e\right )^{3} - a f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot ^{4}{\left (e + f x \right )}}{\sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.34488, size = 134, normalized size = 2.23 \begin{align*} \frac{\frac{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} - 9 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right )} - \frac{9 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 1}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3}}}{24 \, \sqrt{a} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]